package com.consumer.user.service;

import com.consumer.user.config.FullLogConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * 类描述：系统主入口操作类的feign业务接口类
 *
 * @author linzf
 */
@FeignClient(value="USER-CENTER-PRODUCE",configuration = FullLogConfiguration.class,path = "/auth")
public interface ConsumerMainService {

    /**
     * 功能描述：根据用户登录成功以后的token来查找用户的数据
     * @param entity
     * @return
     */
    @PostMapping("getUserInfo")
    Map<String,Object> getUserInfo(Map<String,Object> entity);

    /**
     * 功能描述：根据用户的账号和密码实现用户的登录功能
     * @param entity
     * @return
     */
    @PostMapping("login")
   Map<String,Object> login(Map<String,Object> entity);

}
